$.fn.extend({
    animateCss: function(animationName, func) {
        /*if (IsUCQQ()) {
            if (typeof func != "undefined") func(); //call this function
            return this;
        }*/
        //alert(navigator.userAgent.toLowerCase());
        var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
        $(this).unbind(animationEnd);
        $(this).addClass('animated ' + animationName).one(animationEnd, function() {
            $(this).removeClass('animated ' + animationName);
            if (typeof func != "undefined") func(); //call this function
        });
        return this;
    }
});